package com.hongyi.modelcontest.modular.contest.vo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class ContestRegister {
    @NotBlank
    private String openId;//openId绑定的客户号
    private String contestId;
    @NotBlank
    private String childName;
    @NotBlank
    private String childGender;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date childBirthdate;
    private String photoUrl;
    @NotBlank
    private String parentName;
    @NotBlank
    private String parentPhone;
    @NotNull
    private Long deptId;
    private String introducer;//介绍人
    private String agentId;//代理人

}
